package cn.com.dycc.util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class SessionInfo {
	private String user_id;
	private String account;
	private String username;
	private String ip;

	public SessionInfo(HttpServletRequest request){
		HttpSession session=request.getSession();
		user_id=(String)session.getAttribute("id");
		account=(String)session.getAttribute("account");
		username=(String)session.getAttribute("username");
		//String org_id=(String)session.getAttribute("org_id");
		ip=IPUtil.getLoginIp(request);		
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	

}
